﻿@using NewRen.Models;
@using NewRen.Models.ViewModel
@{
    vUser user = ViewBag.User as vUser;
    ViewBag.Title = "牛人管理-牛人展示";
    UserGroup group = ViewBag.UserGroup;
    Layout = "~/Views/Shared/_Layout_UserGroup.cshtml";
}
<div class="ucenter-left account-left-border">
    <div class="ucneter-l-head cf">
        <div class="ulhead-headicon">
            @if (group.Picture == null)
            {
                <img src="/Images/userphoto.png" width="50" height="50"
                     alt=@group.GroupName style="border-radius:50%;" />
            }
            else
            {
                <img src="/UserGroup/ShowPicture/@group.ID" width="50"
                     alt=@group.GroupName height="50" style="border-radius:50%;" />
            }

        </div>
        <div class="ulhead-info">
            <p class="ulhead-info-uname">@group.GroupName</p>

            <div class="ulhead-info-tool">
                <a class="ulhead-icon icon-lock ucenter-mail " href="/UserGroup/PwdEdit/@group.ID" title="修改密码">
                    <div class="ucenter-mail-tip">修改密码</div>
                </a>
                <a href="/User/Edit/@group.ID"
                   class="ulhead-icon icon-setting ucenter-mail" title="修改牛棚信息"></a>
            </div>
        </div>
    </div>
    <div class="ucenter-l-list">
        <ul class="ullist-ul">
            <li id="uclick">
                <a href="/UserGroup/Show/@group.ID">牛棚中心</a>
            </li>
            <li id="uclick1">
                <a href="/UserGroup/Edit/@group.ID">牛棚设置</a>
            </li>
            <li id="uclick2" class="active">
                <a href="/UserGroup/UserManager/@group.ID">牛棚牛人</a>
            </li>
        </ul>
    </div>
</div>
<div class="ucenter-right cf">
    <div class="ucenter-right-head"><h3>个人中心</h3></div>
    <div class="ucenter-right-body">
        <div class="tabbed">
            <div class="tabGroup">
                <div class="form-item">
                    <div class="item-label">
                        <label>用户名：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.UserName</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>真实姓名：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.RealName</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>性别：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.Sex</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>生日：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@(user.Birthday.HasValue ? user.Birthday.Value.ToShortDateString() : "")</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>QQ：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.QQ</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>地址：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.City</span>
                        @if (user.District != null)
                        {
                            <span class="defInfo">-@user.District</span>
                            if (user.Town != null)
                            {
                                <span class="defInfo">-@user.Town</span>
                            }
                        }

                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>电话：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.Phone</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>微信：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.WhatApp</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>邮箱：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@user.Email</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>所属牛棚：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@group.GroupName</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>认证：</label>
                    </div>
                    <div class="item-span">
                        @{
                            if (user.IsVerified)
                            {
                                <span class="defInfo">认证</span>
                            }
                            else
                            {
                                <span class="defInfo">未认证</span>
                            }
                        }
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label></label>
                    </div>
                    <div class="item-span">
                        <button class="btn" onclick="location.href='/UserGroup/UserEdit/@user.ID'">修改</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
